package cn.worldyao.demo.util;

/**
 * @author yaozi
 */

public class ReturnCode {
    private int code;
    private String message;
    public static ReturnCode R_SUCCESS = new ReturnCode(200, "success");
    public static ReturnCode R_FAIL = new ReturnCode(400, "fail");

    private ReturnCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
